package Day4_sampleCodes.sample;

public class Sample extends SampleAbstract{

	public static void main(String[] args) {
		//arithmetic exception
		try{
			System.out.println(3/0);
			System.out.println("Please print me.");
		}
		catch(ArithmeticException exc){System.out.println(exc);
			
		}
		System.out.println("after exception");
		//array index out of bounds
		try{
			int den = Integer.parseInt(args[0]);
			System.out.println(3/den);
		}
		catch(ArithmeticException exc){System.out.println(exc);
		System.out.println("Divisor was 0.");
		}
		catch(ArrayIndexOutOfBoundsException exc2){
			System.out.println("Missing argument. " + exc2);
			
		}
		System.out.println("After another exception.");
		
		
		
		
		
		Dinosaur a = new Dinosaur();
		a.isLesser(1, 2);
		a.isEqual(2,2);
		a.isGreater(10, 2);
		
		a.isHigher(2, 1);
		a.isLesser(5,2);
		a.isNotEqual(10, 2);
	}

	@Override
	public void walk() {
		// TODO Auto-generated method stub
		
	}	
}
